/*
  Created by 1271107612@qq.com.
  User: DELL
  Date: 2022/5/10
  Time: 8:38
  DESCRIPTION: 
*/
package com.zzy.face.service.impl;

import com.zzy.face.dao.ApprovalDao;
import com.zzy.face.model.Approval;
import com.zzy.face.service.ApprovalService;
import org.springframework.stereotype.Service;


@Service
public class ApprovalServiceImpl implements ApprovalService {
    final ApprovalDao approvalDao;

    public ApprovalServiceImpl(ApprovalDao approvalDao) {
        this.approvalDao = approvalDao;
    }


    @Override
    public void update(Approval approval) {
        approvalDao.save(approval);
    }

    @Override
    public Approval findByRL(Long rl_uid) {
        return approvalDao.getOne(rl_uid);
    }
}
